package com.MRSyc.mapper;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.MRSyc.config.PageModel;
import com.MRSyc.entity.TResources;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Fxq
 * @since 2021-01-12
 */
public interface TResourcesMapper extends BaseMapper<TResources> {


    List<TResources> findAll();

    TResources findOne(TResources record);

    List<TResources> findList(TResources record);

    List<TResources> findPageList(PageModel<TResources> page, TResources resources) throws Exception;

    List<TResources> findListByMapLimit(HashMap<String,Object> hashMap);
    long findCount(TResources resources) throws Exception;

    long findCountByMap(HashMap<String,Object> hashMap);
    
    TResources findById(int resourcesId);
    
    @Select("select (max(id)+1) from t_resources")
    int getMaxResourceId();
}
